using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.EntityFrameworkCore;
using Suntront.DatabaseAccessor;

namespace AspNetCoreMvcPrj
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var app = Host.CreateDefaultBuilder(args)

                  .ConfigureLogging(logging => {
                      logging.AddConsole();
                      logging.AddDebug();
                  })
               .ConfigureWebHostDefaults(webbuilder =>
               {
                   webbuilder.Inject().UseStartup<Startup>();
               })               
               .Build();

            app.Run();
        }
    }
}